package com.guangyunl.d_if;

import java.util.Scanner;

public class Demo06ElseIf {
    public static void main(String[] args) {
        // 创建对象
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入两个int型整数: ");
        int data1 = sc.nextInt();
        int data2 = sc.nextInt();
        System.out.println("data1 = " + data1);
        System.out.println("data2 = " + data2);
        if (data1 > data2){
            System.out.println("data1大于data2");
        }else if (data1 < data2){
            System.out.println("data1小于data2");
        }else {
            System.out.println("data1等于data2");
        }
    }
}
